{% extends "layouts" ~ DIR ~ "default.twig" %}

{% block title %}{{ "Content Settings" | translate }}{% endblock %}

{% block content %}
<h2>{{ "Content Settings" | translate }}</h2>
<form id="content_settings" class="split" action="{{ url('content_settings') }}" method="post" accept-charset="utf-8">
<fieldset role="presentation">
<p>
<label for="posts_per_page">{{ "Posts Per Blog Page" | translate }}</label>
{#- -#}
<input class="text digits" type="number" min="1" name="posts_per_page" value="{{ site.posts_per_page | fix(true) }}" size="2" id="posts_per_page">
</p>
<p>
<label for="feed_items">{{ "Posts in Feed" | translate }}</label>
{#- -#}
<input class="text digits" type="number" min="1" name="feed_items" value="{{ site.feed_items | fix(true) }}" size="2" id="feed_items">
</p>
<p>
<label for="admin_per_page">{{ "Items Per Admin Page" | translate }}</label>
{#- -#}
<input class="text digits" type="number" min="1" name="admin_per_page" value="{{ site.admin_per_page | fix(true) }}" size="2" id="admin_per_page">
</p>
<p>
<label for="default_post_status">{{ "Default Post Status" | translate }}</label>
{#- -#}
<select name="default_post_status" id="default_post_status">
{% for post_status in post_statuses %}
<option value="{{ post_status.id }}"{{ post_status.id | selected(site.default_post_status) }}>
{{ post_status.name }}
</option>
{% endfor %}
</select>
</p>
<p>
<label for="default_page_status">{{ "Default Page Status" | translate }}</label>
{#- -#}
<select name="default_page_status" id="default_page_status">
{% for page_status in page_statuses %}
<option value="{{ page_status.id }}"{{ page_status.id | selected(site.default_page_status) }}>
{{ page_status.name }}
</option>
{% endfor %}
</select>
</p>
<p>
<label for="uploads_path">{{ "Uploads Path" | translate }}</label>
{#- -#}
<input class="text" type="text" name="uploads_path" value="{{ site.uploads_path | fix(true, true) }}" id="uploads_path">
<small>
{{ "The directory to which files are uploaded, relative to your installation directory." | translate }}
</small>
</p>
<p>
<label for="uploads_limit">{{ "Upload Size Limit" | translate }}</label>
{#- -#}
<input class="text digits" type="number" min="1" name="uploads_limit" value="{{ site.uploads_limit | fix(true) }}" size="3" id="uploads_limit">
<span class="sub">{{ "(Megabytes)" | translate }}</span>
</p>
<p>
<label for="feed_format">{{ "Feed Format" | translate }}</label>
{#- -#}
<select name="feed_format" id="feed_format">
{% for feed_format in feed_formats %}
<option value="{{ feed_format.class }}"{{ feed_format.class | selected(site.feed_format) }}>
{{ feed_format.name }}
</option>
{% endfor %}
</select>
</p>
<p>
<label for="search_pages">
{{ "Search Pages" | translate }}
</label>
{#- -#}
<input class="checkbox" type="checkbox" name="search_pages" id="search_pages"{{ site.search_pages | checked }}>
<small>
{{ "Include pages in search results." | translate }}
</small>
</p>
<p>
<label for="send_pingbacks">
{{ "Webmentions" | translate }}
</label>
{#- -#}
<input class="checkbox" type="checkbox" name="send_pingbacks" id="send_pingbacks"{{ site.send_pingbacks | checked }}>
<small>
{{ "Send and receive notifications when URLs are mentioned." | translate }}
</small>
</p>
<p>
<label for="enable_emoji">
{{ "Unicode Emoticons" | translate }}
<a href="{{ url('help/id/unicode_emoticons') }}" rel="help" target="_blank" class="help emblem">
{{- icon_svg("help.svg", "Help" | translate) -}}
</a>
</label>
{#- -#}
<input class="checkbox" type="checkbox" name="enable_emoji" id="enable_emoji"{{ site.enable_emoji | checked }}>
<small>
{{ "Display emoticons as Unicode emoji." | translate }}
</small>
</p>
<p>
<label for="enable_markdown">
{{ "Markdown" | translate }}
<a href="{{ url('help/id/markdown') }}" rel="help" target="_blank" class="help emblem">
{{- icon_svg("help.svg", "Help" | translate) -}}
</a>
</label>
{#- -#}
<input class="checkbox" type="checkbox" name="enable_markdown" id="enable_markdown"{{ site.enable_markdown | checked }}>
<small>
{{ "Compose blog content using Markdown text formatting." | translate }}
</small>
</p>
<p class="buttons">
<button type="submit" class="yay">
{{ "Update" | translate }}
</button>
</p>
<input type="hidden" name="hash" value="{{ authenticate() }}" id="hash">
</fieldset>
</form>
{% endblock %}
